﻿using MediatR;
using SmartProduction.Domain.客户管理;
using SmartProduction.ErrorCode;
using System.ComponentModel.DataAnnotations;

namespace SmartProduction.Read.API.Application.Commands.SalesOrderCommand
{
    /// <summary>
    /// 销售订单查询命令
    /// </summary>
    public class SalesOrderQueryCommand : IRequest<APIResult<APIPaing<SalesOrder>>>
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        public int PageSize { get; set; }


        /// <summary>
        /// 订单编码
        /// </summary>
        [StringLength(50)]
        public string? SalesOrderNumer { get; set; }
        /// <summary>
        /// 订单名称
        /// </summary>
        [StringLength(50)]
        public string? ClientInfoNumer { get; set; }
        /// <summary>
        /// 订单类型
        /// </summary>
        [StringLength(50)]
        public string? SalesOrderType { get; set; }
        /// <summary>
        /// 客户
        /// </summary>
        [StringLength(50)]
        public string? ClientInfoNo { get; set; }
        /// <summary>
        /// 所属项目
        /// </summary>
        [StringLength(50)]
        public string? AltEnter { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool OrderStatus { get; set; }
    }
}
